<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="cms" uri="http://cms.gxsoft.com/tags-cms"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>系统日志</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
<script language="javascript" src="<%=request.getContextPath()%>/js/meizzDate.js"></script>
</head>

<body>
<form method="post">
	<table width="80%" class="bordernone">
	<tr><td class="bg_blue">起始时间：</td>
	<td><input type="text" name="begintime" onclick="SelectDate(this,'yyyy-MM-dd')" 
				 value="${param.begintime}"></td>
	<td class="bg_blue">结束时间：</td>
	<td><input type="text" name="endtime" onclick="SelectDate(this,'yyyy-MM-dd')" 
				 value="${param.endtime}"></td>
	<td class="bg_blue">操作类型</td>
		<td >
		<select name="sysLogInfoOperType">
		 	<option value="" >请选择</option>
		 	<option value="0" <c:if test="${param.sysLogInfoOperType == '0'}">selected</c:if>>增加</option>
		 	<option value="1" <c:if test="${param.sysLogInfoOperType == '1'}">selected</c:if>>修改</option>
		 	<option value="2" <c:if test="${param.sysLogInfoOperType == '2'}">selected</c:if>>删除</option>
		 	<option value="3" <c:if test="${param.sysLogInfoOperType == '3'}">selected</c:if>>登陆</option>
		 	<option value="4" <c:if test="${param.sysLogInfoOperType == '4'}">selected</c:if>>分配权限</option>
		 	<option value="5" <c:if test="${param.sysLogInfoOperType == '5'}">selected</c:if>>分配用户</option>
		 	<option value="6" <c:if test="${param.sysLogInfoOperType == '6'}">selected</c:if>>分配机构范围</option>
		 	<option value="7" <c:if test="${param.sysLogInfoOperType == '7'}">selected</c:if>>分配地区范围</option>
		 	<option value="8" <c:if test="${param.sysLogInfoOperType == '8'}">selected</c:if>>申请</option>
		 	<option value="9" <c:if test="${param.sysLogInfoOperType == '9'}">selected</c:if>>审批</option>
		 	<option value="10" <c:if test="${param.sysLogInfoOperType == '10'}">selected</c:if>>退出登陆</option>
		 	<option value="11" <c:if test="${param.sysLogInfoOperType == '11'}">selected</c:if>>立案</option>
		</select>
	</tr>
	<tr><td class="nohover" colspan="6" align="center"><input class="buttonsearch" type="submit" value="查询" name=""/>&nbsp;    
	<input class="buttondownload" type="button" value="导出"  onClick="javascript:daochu.submit()"/></td></tr><tr><td height="10"></td></tr>
	</table>
	
</form>
<form name="daochu" method="post" action="<%=request.getContextPath()%>/SysLog.do?method=downloadExcel">
		 <input type="hidden" name="begintime" value="${param.begintime}"/>
	    <input type="hidden" name="endtime" value="${param.endtime}"/>
	    <input type="hidden" name="sysLogInfoOperType" value="${param.sysLogInfoOperType}"/>
	    </form>
<table width="90%" border="1">
  <tr>
    <th width="10%">用户姓名</th>
    <th width="10%">操作类型</th>
    <th width="20%">操作时间</th>
    <th width="30%">内容</th>
  </tr>
  <c:forEach items="${list}" var="prod" varStatus="lineInfo">
  <tr <c:if test="${lineInfo.count % 2 == 0}">class="blue"</c:if>>
	    <td>${prod.persionFile.perFileLoginName }</td>
	    <td>
	    <c:if test="${prod.sysLogInfoOperType == '0'}">增加</c:if>
	    <c:if test="${prod.sysLogInfoOperType == '1'}">修改</c:if>
	    <c:if test="${prod.sysLogInfoOperType == '2'}">删除</c:if>
	    <c:if test="${prod.sysLogInfoOperType == '3'}">登陆</c:if>
	    <c:if test="${prod.sysLogInfoOperType == '4'}">分配权限</c:if>
	    <c:if test="${prod.sysLogInfoOperType == '5'}">分配用户</c:if>
	    <c:if test="${prod.sysLogInfoOperType == '6'}">分配机构范围</c:if>
	    <c:if test="${prod.sysLogInfoOperType == '7'}">分配地区范围</c:if>
	    <c:if test="${prod.sysLogInfoOperType == '8'}">申请</c:if>
	    <c:if test="${prod.sysLogInfoOperType == '9'}">审批</c:if>
	    <c:if test="${prod.sysLogInfoOperType == '10'}">退出登陆</c:if>
	    <c:if test="${prod.sysLogInfoOperType == '11'}">立案</c:if>
	    </td>
	    <td>
	    	<fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${prod.sysLogInfoOperDate }"/>
	    </td>
	    <td>${prod.sysLogInfoOperRecord }</td>
	  </tr>
	 </c:forEach>
	  <tr>
	    <td class="nohover" colspan="4" align="center">
	    <form name="pageForm" method="post">
		 <input type="hidden" name="begintime" value="${param.begintime}"/>
	    <input type="hidden" name="endtime" value="${param.endtime}"/>
	    <input type="hidden" name="sysLogInfoOperType" value="${param.sysLogInfoOperType}"/>
	    <c:out value="${foot}" escapeXml="false"/>
	    </form>
		</td>
	  </tr>
</table>
</body>
</html>
